package com.teng.domain;

public class Phone {
    private String brand;
    private int price;
    private String color;

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPrice() {
        return price;
    }

    public String getBrand() {
        return brand;
    }

    public String getColor() {
        return color;
    }

    public void call(String number) {
        System.out.println(
                "正在使用价格为" + this.price + "元" + this.color + "的" + this.brand + "手机打电话给" + number);
    }

    public void sendMessage(String message) {
        System.out.println(
                "正在使用价格为" + this.price + "元" + this.color + "的" + this.brand + "手机发短信，短信内容：" + message);
    }
}
